import java.util.ArrayList;

//medium
public class EvilBunny extends Pet {


	public EvilBunny(String petName, int petXP, int petDamageTaken, int petDef, int petStr, int petSpd, int petSize, ArrayList<AttackName> petAttacks) {
		super(petName, "Föredetta kanin mästare i MMA. Hans energi tar aldrig slut.", Type.Energy, petXP, petDamageTaken, petDef, petStr, petSpd, petSize, petAttacks,"/petsPictures/evilBunnyFront.gif","/petsPictures/evilBunnyBack.gif");

	}
 
	public EvilBunny(String petName, int petExp) {

		super(petName, "Föredetta kanin mästare i MMA. Hans energi tar aldrig slut.", Type.Energy, petExp, 10, 11, 9, 30, new EvilBunny().startingAttacks(petExp), "/petsPictures/evilBunnyFront.gif","/petsPictures/evilBunnyBack.gif");
	}


	public EvilBunny(){
		super();
	}
	
	public ArrayList<AttackName> startingAttacks(int exp) {
		int xp = exp;
		ArrayList<AttackName> attacks = new ArrayList<AttackName>();
		
		if (xp == -1){
			return attacks;
		}
		
		if(xp<100){
			attacks.add(AttackName.TorsIlska);
			return attacks;
			}
			else if(xp < 200){
			attacks.add(AttackName.TorsIlska);
			attacks.add(AttackName.Förödmjuka);
			return attacks;
			}
			else if(xp<400){
				attacks.add(AttackName.TorsIlska);
				attacks.add(AttackName.Förödmjuka);
				attacks.add(AttackName.Skalla);
				return attacks;
			}
			else if(xp<600){
				attacks.add(AttackName.TorsIlska);
				attacks.add(AttackName.Förödmjuka);
				attacks.add(AttackName.Skalla);
				attacks.add(AttackName.BiffKrim);
				return attacks;
			}
			else if(xp<800){
				attacks.add(AttackName.TorsIlska);
				attacks.add(AttackName.Blixtsnabb);
				attacks.add(AttackName.Skalla);
				attacks.add(AttackName.BiffKrim);
				return attacks;
			}
			else {
				attacks.add(AttackName.TorsIlska);
				attacks.add(AttackName.Blixtsnabb);
				attacks.add(AttackName.Skalla);
				attacks.add(AttackName.Elkretsanalys);
				return attacks;
			}
	}

	public Pet copy() {
		EvilBunny duplicate = new EvilBunny(name, currentXP, damageTaken, defense, strength, speed, size, attacks);
		duplicate.energy = energy;
		return duplicate;
	}
	public Pet copy(int exp) {
		EvilBunny duplicate = new EvilBunny(name, exp);
		duplicate.energy = energy;
		return duplicate;
	}
}

	



